	function update_profile(field,id){
	
		var ajaxRequest;  // The variable that makes Ajax possible!
	
		ajaxRequest = new XMLHttpRequest();
	
		// Create a function that will receive data sent from the server
		ajaxRequest.onreadystatechange = function(){
			if(ajaxRequest.readyState == 4){
				response = ajaxRequest.responseText;
				error = document.getElementById("error_"+field);
				error.innerHTML = response;
			}
		}
	
		var string = '';
		
		first_name = document.getElementById(id+'1');
		if(field == "birthday"){
			string = document.getElementById(id+'1').value + '/' + document.getElementById(id+'2').value + '/' + document.getElementById(id+'3').value;
		}else if(field == "phone_number"){
			string = document.getElementById(id+'1').value + " " + document.getElementById(id+'2').value + " - " + document.getElementById(id+'3').value;
		}else if(first_name){
			for(i=1;i<5;i++){
				string = string + ' ' + document.getElementById(id+i).value;
			}
		}else{
			string = document.getElementById(id).value;
		}
		
		var mypost = "field=" + field + "&value=" + string + "&mode=update";
		ajaxRequest.open("POST", "handle/update_profile_ajax.php", true);
		ajaxRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		ajaxRequest.send(mypost);
	}